package com.guigu.tms.commons.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 车辆信息表
 * </p>
 *
 * @author wj
 * @since 2022-09-28
 */
@TableName("pd_truck")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PdTruck implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "truck_id", type = IdType.AUTO)
    private Integer truckId;

    /**
     * 车辆编号
     */
    private String id;

    /**
     * 车辆类型id
     */
    private String truckTypeId;

    /**
     * 所属车队id
     */
    private String fleetId;

    /**
     * 品牌
     */
    private String brand;

    /**
     * 车牌号码
     */
    private String licensePlate;

    /**
     * GPS设备id
     */
    private String deviceGpsId;

    /**
     * 准载重量
     */
    private BigDecimal allowableLoad;

    /**
     * 准载体积
     */
    private BigDecimal allowableVolume;

    /**
     * 车辆行驶证信息id
     */
    private String truckLicenseId;

    /**
     * 状态 0：禁用 1：正常
     */
    private Integer status;

    /**
     * 车次id
     */
    private Integer transportTripsId;

    @TableField(exist = false)
    private PdTruckLicense pdTruckLicense;

//    @TableField(exist = false)
//    private PdTransportTrips pdTransportTrips;

    @TableField(exist = false)
    private PdTruckType pdTruckType;
}
